import java.util.Scanner;

public class Avg {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = 0;
        int sum = 0;
        while (sc.hasNextInt()){
            int tem = sc.nextInt();
            sum += tem;
            num++;
        }
        System.out.println("sum =  "+sum);
        System.out.println("avg =  "+sum/num);
        sc.close();
    }
}
